<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/common_header.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/common_bottom.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/SuccessOrder.css"/>
		<script type="text/javascript" src="<?php echo __PUBLIC__?>/Home/js/jquery-1.8.2.min.js"></script>
	</head>
	<body>
		<!--顶部登陆-->
	<div class="page_top_nav_long">
		<div class="page_top_nav">
			<!--顶部左边-->
			<ul class="page_top_nav_l">
				<li class="s-hw" style="background-image: none;padding-left: 0px;"><a href="index.php" style="padding-left: 0px;">华为官网</a></li>
			</ul>
			<!--顶部右边-->
			<ul class="page_top_nav_r">
				<?php if(isset($_SESSION['username'])){?>
                
				<!--如果有登陆，才显示-->
				<li style="display: list-item;" class="s-user hide" id="login_status">
					<div class="s-dropdown">
						<div class="h">
							<a href="<?php echo U('User/index')?>" id="customer_name" rel="nofollow" timetype="timestamp" class="link-user"><?php echo $_SESSION['username']?></a>
							 <em class="vip-state" id="vip-info">
								<a href="<?php echo U('User/index')?>" title="VMALL V0会员" id="vip-Active"><i class="icon-vip-level-0"></i>&nbsp;</a>
							</em>
							<s></s>
						</div>
						<div class="b">
							<p><a href="https://hwid1.vmall.com/oauth2/userCenter/hwAccount?reqClientType=26&amp;loginChannel=26000000&amp;themeName=cloudTheme" target="_blank" id="user-center">我的华为帐号</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="<?php echo U('Login/out')?>">退出</a></p>
						</div>
					</div>
				</li>
				<?php }else{?>
				<!--如果没有登录才会显示-->
				<li class="login">
					<a href="<?php echo U('Login/index')?>" class="login">登陆</a>
					<a href="<?php echo U('Register/index')?>" class="page_top_nav_r_a">注册</a>
				</li>
				
               <?php }?>
				<li>
					<a href="<?php echo U('User/index')?>" class="page_top_nav_r_a">我的订单</a>
				</li>
			</ul>
		</div>
	</div>
	<!--顶部登录结束-->
	<!--logo-->
	<div class="top_logo_long">
		<div class="top_logo">
			<div class="top_logo_l">
				<div class="logo_img">
					<img src="<?php echo __PUBLIC__?>/Home/images/newLogo.png"/>
				</div>
			</div>
			<div class="top_logo_r">
				<div class="progress-area">
					<div class="progress-cart"></div>
					<div class=""></div>
					<div></div>
				</div>
			</div>
		</div>
	</div>
	<!--顶部logo 结束-->
	<!--支付订单-->
	<div class="pay_order">
		<div class="order-confirm order-confirm-expand" id="order-confirm-detail">
		<div class="h">
			<s class="icon-success-7"></s>
			<h3>订单提交成功，请您尽快付款！</h3>	
			<p name="order-pay-info" ordertype="">订单号：&nbsp;&nbsp;<span id="order_num"><?php echo $orderData['number']?></span>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;付款金额（元）：&nbsp;&nbsp;<b>
				<?php echo $orderData['totalprice']?>.00
			</b>&nbsp;<b>元</b></p>
			<div class="tips">请您在&nbsp;&nbsp;<b id="lastPayTime">2015-11-24 20:34</b>&nbsp;完成支付，否则订单将自动取消。</div>
			<div class="hr-5"></div>
		</div>
		<div class="b">
			<table border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<th>订单编号：</th>
						<td><span><?php echo $orderData['number']?></span></td>
					</tr>
					<tr>
						<th>订单金额：</th>
						<td>
							<?php echo $orderData['totalprice']?>.00元	
						</td>
					</tr>
					<tr>
						<th>收货信息：</th>
						<td>
							<?php echo $orderData['address']?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<?php echo $orderData['name']?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<?php echo $orderData['phone']?>
						</td>
					</tr>
					<tr>
						<th>购买日期：</th>
						<td><?php echo date('Y-m-d H:i:s',$orderData['time'])?></td>
					</tr>
					<tr>
						<th>配送方式：</th>
						<td>
							由默认快递公司配送&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							运费￥0.00							
						</td>
					</tr>
					<tr>
						<th>发票信息：</th>
						<td>个人</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="f"><a href="javascript:;" id="order_details">订单详情<i></i><s></s><b></b></a></div>
		<script type="text/javascript">
			$(function(){
				$('#order_details').click(function(){
					if($('#order-confirm-detail .b').css("display")=="none"){
						$('#order-confirm-detail .b').show();
					}else{
						$('#order-confirm-detail .b').hide();
					}
				})
			})
		</script>
	</div>
	</div>
	<!--支付订单结束-->
	<div class="order-form-area" style="margin-bottom: 50px;">
<div class="order-payment" id="order-payment-mod">
	<h3 class="title">支付方式
		<!--<b>[&nbsp;<a title="重新选择支付方式" href="javascript:;" onclick="ec.order.payment.edit()">重新选择</a>&nbsp;]</b>-->
	</h3>
	<!--订单-表单-支付方式列表结束 -->
	<!--订单-表单-支付方式确认- -->
	<form action="<?php echo U('User/getOrderAjax')?>" method="post" id="form_pay">
    <div style="display: block;" class="order-payment-define-area hide" id="order-payment-define-area">
		<div class="b" style="position: relative;">
			<input type="hidden" name="uid" value="<?php echo $_SESSION['app_uid']?>"/>
			<!--账户余额-->
			<dl>
				<dd>
					<div class="payment-area vam">
						<h2 style="font-size: 24px;">您的账户余额：<span style="color: red;font-size: 24px;"><?php echo $Umoney?>.00元</span></h2>
					</div>
				</dd>
			</dl>
			<dl>
				<dd>
					<div class="payment-area vam">
							<label for="pay">填写支付金额&nbsp;:&nbsp;</label>
							<input type="text" name="pay_text" id="pay" value="" style="border-color: #DEDEDE;"/>
							<span id="hd_pay_text" uid="<?php echo $_SESSION['app_uid']?>"></span>
						<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/hdjs/hdjs.css"/>
						<script type="text/javascript" src="<?php echo __PUBLIC__?>/Home/hdjs/hdjs.min.js"></script>
						<script type="text/javascript">
						$(function(){
							var num = $('#money').html();
							$('#form_pay').validate({
								pay_text:{
									rule:{
										required:true,
										regexp:/^[0-9]*$/,
										confirm: 'money'
									},
									error:{
										required:'价格不能为空',
										regexp:'请写数字',
										confirm: '请看好价格哦~'
									},
									success:'通过'
								}
							})
						})
						</script>
						<style type="text/css">
							#pay{
								text-indent: 2em;
								height: 35px;
								border: 1px solid #FFFFFF;
							}
							#pay:focus{
								border: 1px solid #0000FF;
							}
							#hd_pay_text{
								display: inline-block;
								width: 500px;
								position: absolute;
								top: 40px;
								left: 100px;
							}
						</style>
					</div>
					<div class="inline-block vam"><span class="order-payment-price">您需要支付&nbsp;<b id="money"><?php echo $orderData['totalprice']?></b><b>.00&nbsp;</b><b>元</b></span></div>
					<input type="hidden" name="money" id="money" value="<?php echo $orderData['totalprice']?>" />
					<input type="hidden" name="oid" value="<?php echo $orderData['oid']?>"/>
				</dd>
			</dl>
		</div>
		<div class="f">
			<?php if($orderData['totalprice'] < $Umoney){ ?>	
			<input type="submit" value="立即支付"  class="button-style-5 button-confirm-payment" id="go2pay"/>
			<?php }else{ ?>
			<a href="<?php echo U('User/index')?>" class="button-style-5 button-confirm-payment">立即充值</a>
			<?php } ?>
		</div>
   </div>
    </form>
	<!--订单-表单-支付方式确认结束 -->
	</div>
</div>
<!--引入公共底部-->
	<!--商城宣传-->
	<div class="slogan">
		<ul>
			<li style="width: 326px;"><i></i>500强企业 品质保证</li>
			<li style="width: 327px;"><i></i>7天退货 15天换货</li>
			<li><i></i>99元起免运费</li>
			<li style="float: right;"><i></i>448家维修网点 全国联保</li>
		</ul>
	</div>
	<!--底部友情链接-->
	<div class="footer">
		<div class="footer-otherLink">
			<p>友情链接： | 
				<a href="http://www.houdunwang.com">后盾网</a> | 
				<!--<a href="">华为消费者业务</a>
				<span>|</span>-->
			</p>
			<p></p>
			<p></p>
			<p></p>
			<p></p>
		</div>
		<div class="footer-warrant-area">
			<p>Copyright © 2011-2015  华为软件技术有限公司  版权所有  保留一切权利  苏B2-20130048号 | 苏ICP备09062682号-9</p>
			<p><a href="javascript:;">网络文化经营许可证苏网文[2012]0401-019号</a></p>
			<p class="footer-warrant-img">
				<a href=""><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/certificate_01_112_40.png" alt="" /></a>
				<a href=""><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/certificate_02_112_40.png" alt="" /></a>
				<a href=""><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/certificate_03_112_40.png" alt="" /></a>
			</p>
		</div>
	</div>	
	<script type="text/javascript" src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/js/BackTop.js"></script>
	<script type="text/javascript">
			$(function(){
				//插件使用
				$('.goTop').backTop({right:20});
			})
		</script>
	<div class="goTop">
		
	</div>
	</body>
</html>
